package org.jeecg.modules.app.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.model.EnumDictOption;
import org.jeecg.modules.app.entity.AppClient;

import java.util.List;

/**
 * @Description: 应用管理
 * @Author: sean
 * @Date:   2024-09-30
 * @Version: V1.0
 */
public interface AppClientMapper extends BaseMapper<AppClient> {

    IPage<AppClient> selectJoinPage(@Param("page") Page page, @Param(Constants.WRAPPER) Wrapper wrapper);

//    List<AppClient> selectJoinList(@Param("param") AppClient appClient);

    List<EnumDictOption> selectOption(@Param("param") AppClient appClient);

    @InterceptorIgnore(tenantLine = "true")
    AppClient getOneNoTenant(@Param(Constants.WRAPPER) Wrapper wrapper);

    @InterceptorIgnore(tenantLine = "true")
    List<AppClient> selectListNoTenant(@Param(Constants.WRAPPER) Wrapper wrapper);
}
